package com.zhuiyun.project.api.venuemanagement.mapper;

import com.zhuiyun.project.api.venuemanagement.entity.BanRecord;
import com.zhuiyun.project.api.venuemanagement.entity.VenueManagement;
import com.zhuiyun.project.api.venuemanagement.model.SelectSubordinateModel;
import com.zhuiyun.project.api.venuemanagement.model.VenueSelectModel;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @InterfaceName VenueBanMapper
 * @Description TODO
 * @Author wuwan
 * @Date 2023/12/6 10:21
 **/
@Mapper
public interface VenueBanMapper {
    /*
    * @Author wuwan
    * @Description 查询被封禁的场馆
    * @Date 2023/12/6 11:03
    * @Return
    */
    List<VenueSelectModel> selectVenueBan(String userName, String phone);
    /*
     * @Author wuwan
     * @Description 场馆解封状态
     * @Date 2023/11/6 11:02
     * @Return
     */
    Integer changeUserStatusBan(BanRecord banRecord);
    /*
    * @Author wuwan
    * @Description 查询历史封禁记录
    * @Date 2023/12/6 14:24
    * @Return
    */
    List<BanRecord> getVenueBanRecord(String venueUniqueIdentifier);

    Integer removeByTime(BanRecord banRecord);
    /*
     * @Author wuwan
     * @Description 查询所有已经解封场馆的唯一标识符
     * @Date 2023/12/6 19:50
     * @Return
     */
    List<BanRecord> selectUnique();
    /*
    * @Author wuwan
    * @Description 到达解封时间的 场馆自动解封
    * @Date 2023/12/6 19:50
    * @Return
    */
    void changeLiftBan(BanRecord banRecord);
    /*
    * @Author wuwan
    * @Description 查询所有授权到期场馆的唯一标识符
    * @Date 2023/12/6 19:50
    * @Return
    */
    List<BanRecord> selectAuthorization();
    /*
    * @Author wuwan
    * @Description 定时解除授权
    * @Date 2023/12/6 20:18
    * @Return
    */
    void changeAuthorizationExpiredTime(BanRecord banRecord);
}
